package com.clds.kotlinforbusinesslisting.base;

import android.app.Application;

import com.clds.kotlinforbusinesslisting.component.BaseComponent;

import com.clds.kotlinforbusinesslisting.component.DaggerBaseComponent;
import com.clds.kotlinforbusinesslisting.module.ApplicationModel;

/**
 * Created by zhiweijin on 17-6-28.
 */

public class BaseApplication extends Application {
    public BaseComponent component;
    public static BaseApplication instance;
    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
        component = DaggerBaseComponent.builder().applicationModel(new ApplicationModel(this)).build();
        component.inject(this);
    }


}
